<%@ page language="java" pageEncoding="UTF-8"%>
<div ng-controller="BlogOrderEditController">
	<form callback="save" validate>
		<div class="form-group">
			<label>
				名称
			</label><br/>
			<input class="form-control" type="text" name="name" ng-model="order.name" rule="required;" />
		</div>
		<div class="form-group">
			<label>
				索引<i class="glyphicon glyphicon-exclamation-sign" message="'数字越大越靠后'" tooltip></i>
			</label><br/>
			<input class="form-control" type="text" name="index" ng-model="order.index" rule="required;integer[+];" />
		</div>
		<div>
			<button type="submit" class="btn btn-success btn-sm"><i class="glyphicon glyphicon-ok"/> 保存</button>
			<button type="button" class="btn btn-danger btn-sm" ng-click="cancel()"><i class="glyphicon glyphicon-remove"/> 取消</button>
		</div>
	</form>
</div>